.container {
    padding: 20px;
    background: #f5f5f5;
    min-height: calc(100vh - 100px);
}

.header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tabs button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.tabs button:hover {
    background: #f0f0f0;
}

.tabs button.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section {
    width: 100%;
}

.section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.tableContainer {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background: #f5f5f5;
}

.active {
    color: #52c41a;
    font-weight: 500;
}

.inactive {
    color: #ff4d4f;
    font-weight: 500;
}

.permissionsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.resourceGroup {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.resourceGroup h3,
.resourceGroup h4 {
    margin: 0 0 15px 0;
    color: #1890ff;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1890ff;
}

.resourceGroup h4 {
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.permissionsList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permissionItem {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.permissionCode {
    font-family: monospace;
    color: #1890ff;
    font-size: 12px;
    margin-bottom: 5px;
}

.permissionName {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.permissionDesc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.permissionType {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 11px;
}

.assignContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roleSelector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.roleSelector label {
    font-weight: 500;
    color: #333;
}

.select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.permissionsSelector {
    margin-top: 20px;
}

.permissionsSelector h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.checkboxGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.checkboxLabel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkboxLabel:hover {
    background: #f0f0f0;
}

.checkboxLabel input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkboxLabel span {
    color: #333;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.btnPrimary,
.btnSecondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btnPrimary {
    background: #1890ff;
    color: white;
}

.btnPrimary:hover:not(:disabled) {
    background: #40a9ff;
}

.btnPrimary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btnSecondary {
    background: #f0f0f0;
    color: #333;
}

.btnSecondary:hover {
    background: #d9d9d9;
}